package com.ns.scs.task.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ns.core.bo.BaseBO;
import com.ns.core.utils.StpUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 任务执行器类
 *
 * @author liao.wei
 * @since 2024/11/11
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ScheduledActuatorBO extends BaseBO {

    /**
     * id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 名称
     */
    private String actuatorName;

    /**
     * 执行器类
     */
    private String actuatorClass;

    /**
     * 所属服务
     */
    private Long sid = StpUtil.getSid();

    /**
     * 所属租户
     */
    private Long rid = StpUtil.getRid();
}
